<?php

class Database {

  protected static $_dbs = array();

  public static function getIntance($name = 'default') {
    if (@self::$_dbs[$name] == NULL) {
      $config = array(
          'dbname' => 'startup_v1',
          'username' => 'root',
          'password' => '',
          'host' => 'localhost',
          'port'=>3306,
          
      );
      $db = self::$_dbs[$name] = new Database_Mysql($config);
    }
    return self::$_dbs[$name];
  }
  

}